package com.archgeek.spark.examples

import org.apache.spark.sql.SparkSession
import org.apache.spark.util.sketch.BloomFilter

/**
 *
 *
 * Create by pizhihui on 2019-12-03
 */
object boolmfilter {

  def main(args: Array[String]): Unit = {

    val spark = SparkSession.builder().appName("test app").enableHiveSupport().getOrCreate()
    val df = spark.sql("")
    val filter: BloomFilter = df.stat.bloomFilter("abc", 2000 * 1000, 0.3)

  }

}
